<?php

namespace addons\zzcash\model;

use think\Model;
use think\model\relation\BelongsTo;

class OutM extends Model
{
    const PAYED_IS_YES = 'yes';
    const PAYED_IS_NO  = 'no';
    protected $table              = 'zzcash_out';
    protected $autoWriteTimestamp = true;
    protected $createTime         = 'create_at';

    public function admin(): BelongsTo
    {
        return $this->belongsTo(AdminM::class, 'admin_id', 'id', '', 'left')->setEagerlyType(0);
    }

    public function user(): BelongsTo
    {
        return $this->belongsTo(UserM::class, 'user_id', 'id', '', 'left')->setEagerlyType(0);
    }
}
